<template>
    <div id="superSearchLog" class="content">
        <div class="spare-a">
			<div class="save-bg">
                <!-- <router-link :to="{name:'IetmLog',params:{}}" class="spare-tj" >确 定
                </router-link> -->
                <button  class="spare-tj" @click="toLog">确定</button>
               <!--  <a href="javascript:void(0);"  class="spare-tj" onclick="submitForm()"></a>-->
            </div> 
			<div class="spare-add">
				<ul>
					<li>
						<div class="spare-addl">用户名称：</div>
						<div class="spare-addr"><input class="spare-add-input" id="username" v-model="userName"/></div>
					</li>
					<li>
						<div class="spare-addl">行为：</div>
						<div class="spare-addr"><input class="spare-add-input" id="operation" v-model="operation"/></div>
					</li>
					<li>
						<div class="spare-addl">起始时间：</div>
						<div class="spare-addr"><input type="text" v-model="startDate" id="startDate" placeholder='请选择日期'>
                            <!-- <input class="spare-add-input" onclick="laydate()" id="startDate" v-model="startDate"/> --></div>
					</li>
					<li>
						<div class="spare-addl">终止时间：</div>
						<div class="spare-addr"><input class="spare-add-input" onclick="laydate()" id="endDate" v-model="endDate"/></div>
					</li>
				</ul>
			</div>
		</div>
    </div>
</template>

<script>
import IetmLog from '../../../store/log.js'
export default {
    data(){
        return{
            userName:'',
            operation:'',
            startDate:'',
            endDate:'',
            title:''
        }
    },
    methods:{
        toLog(){
             this.$emit('returnflag',false);
             IetmLog.$emit('val',{username:this.userName,
                                  operation:this.operation,
                                  startDate:this.startDate,
                                  endDate:this.endDate});
            this.userName = '' ;
            this.operation = '';
            this.startDate = '';
            this.endDate = '';
        }
    }
}
</script>

<style scoped>
@import url('../../../assets/css/content.css');
@import url('../../../assets/css/animation.css');
</style>

